// announcement.js
import request from "@/utils/request";

// 获取信息公示列表
export const announcementList = (params) => request.get("/api/announcement/pageList.do", params);

// 添加信息公示
export const insertAnnouncement = (obj) => request.post("/api/announcement/insert.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});

// 删除信息公示
export const deleteAnnouncement = (obj) => request.post("/api/announcement/deleteById.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});

// 编辑信息公示
export const updateAnnouncement = (obj) => request.post("/api/announcement/update.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});